package group.cyfc.studygo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;

@Data
@Entity
@Table(name = "user")
@Accessors(chain = true)
public class User extends BaseEntity{

    @Column(nullable = false,name = "username")
    private String username;

    @Column(name = "nickname")
    private String nickname;

    @Column(name = "score",columnDefinition = "int default 0")
    private Integer score;

    @Column(name = "grade")
    private String grade;

    @Column(name = "password")
    private String password;

}
